﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace BlogModels
{
    public class Blog
    {
        [DisplayName("自动编号")]
        public int Id { get; set; }
        [DisplayName("博客标题")]
        [Required]
        public string Title { get; set; }
        [DisplayName("图片标题")]
        [Required]
        public string PicTitle { get; set; }
        [DisplayName("博客内容")]
        [Required]
        public string Content { get; set; }
        [DisplayName("添加时间")]
        public DateTime? AddTime { get; set; }
        [DisplayName("修改时间")]
        public DateTime? EditTime { get; set; }

        public List<Comments> Comments { get; set; }

    }
}
